package com.liqi.display.service.impl;

import com.liqi.display.entity.TblOArchive;
import com.liqi.display.mapper.TblOArchiveMapper;
import com.liqi.display.service.ITblOArchiveService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.xml.crypto.Data;
import java.util.Calendar;
import java.util.Date;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liqi
 * @since 2021-04-12
 */
@Service
public class TblOArchiveServiceImpl extends ServiceImpl<TblOArchiveMapper, TblOArchive> implements ITblOArchiveService {

    @Autowired
    TblOArchiveMapper tblOArchiveMapper;

    @Override
    public int total(Date date) {
        return tblOArchiveMapper.total(date);
    }

    @Override
    public int totalDay(String dateStr) {
        return tblOArchiveMapper.totalDay(dateStr);
    }

    @Override
    public int totalMonth(String dateStr) {
        return tblOArchiveMapper.totalMonth(dateStr);
    }
}
